package com.ruoyi.edh.service.impl;

import com.ruoyi.edh.domain.dto.EdhSupplierStatisticsDto;
import com.ruoyi.edh.domain.dto.EdhTeamOrderStatisticsDto;
import com.ruoyi.edh.domain.vo.EdhSupplierStatisticsVo;
import com.ruoyi.edh.domain.vo.EdhTeamOrderStatisticsVo;
import com.ruoyi.edh.mapper.EdhStatisticsMapper;
import com.ruoyi.edh.service.IEdhStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 *
 *
 * @description:易订货统计业务类
 * @author: 梁东宸
 * @time: 2020/9/21 3:24 下午
 */
@Service
public class EdhStatisticsServiceImpl implements IEdhStatisticsService {
    @Autowired
    private EdhStatisticsMapper statisticsMapper;
    /**
     *
     * @description: 查询供货商商品数量统计列表
     * @param
     * @return: List<EdhSupplierStatisticsVo>
     * @author: 梁东宸
     * @time: 2020/9/21 3:22 下午
     */
    @Override
    public List<EdhSupplierStatisticsVo> querySupplierStatisticsList(EdhSupplierStatisticsDto supplierStatisticsDto) {
        return statisticsMapper.querySupplierStatisticsList(supplierStatisticsDto);
    }

    /**
     *
     *
     * @description:  团长订单统计
     * @param edhTeamOrderStatisticsDto
     * @return: List<EdhTeamOrderStatisticsVo>
     * @author: 梁东宸
     * @time: 2020/9/22 10:23 上午
     */
    @Override
    public List<EdhTeamOrderStatisticsVo> queryTeamOrderStatisticsList(EdhTeamOrderStatisticsDto edhTeamOrderStatisticsDto){
        return statisticsMapper.queryTeamOrderStatistics(edhTeamOrderStatisticsDto);
    };
}
